
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=480, initial-scale=1, minimum-scale=0.45, maximum-scale=1"/>
        <title><?php echo $title;?></title>
        <link href="<?php echo base_url(); ?>script/jajan-1.2.1.css" media="screen" type="text/css" rel="stylesheet"/>
        <script type="text/javascript" src="<?php echo base_url();?>script/jquery-1.6.2.min.js" ></script>
    </head>
    <body>
        <div id="container">
            <div id="header">
                <div class="full" id="titlebar">
                    <div class="logoAndTitle">
                        <div id="uiCommands">
                            <span class="uiCommand">
                                <?php if ($this->session->userdata('logged')) : ?>
                                <a href="<?php echo base_url();?>user/logout">Logout</a>
                                <?php endif; ?>
                            </span>
                        </div>
                        <span class="icon">
                            <a href="<?php echo base_url();?>s">
                                <img src="<?php echo base_url();?>script/jajan_logo-1.1.png">
                            </a>
                        </span>
                    </div>
                </div>
                <?php if ($this->session->userdata('logged')) : ?>
                <div id="userMenu">
                    <table>
                        <tr>
                            <td class="pageTab <?php echo ($title=='Home') ? 'ptactive' : '';?>">
                                <a href="<?php echo base_url();?>main">
                                    <span>Home</span>
                                </a>
                            </td>
                            <td class="pageTab <?php echo ($title=='Add') ? 'ptactive' : '';?>"">
                                <a href="<?php echo base_url();?>main/add">
                                    <span>Add</span>
                                </a>
                            </td>
                            <td class="pageTab <?php echo ($title=='Option') ? 'ptactive' : '';?>"">
                                <a href="<?php echo base_url();?>option">
                                    <span>Option</span>
                                </a>
                            </td>
                        </tr>
                    </table>
                </div>
                <?php endif; ?>
            </div>
            <div id="content">
                <?php echo $content;?>
            </div>
            <div id="footer"></div>
        </div>
    </body>
</html>
